<#assign ctx="${rc.contextPath}">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title></title>
		<style type="text/css">
			body {
				margin-left: 0px;
				margin-top: 0px;
				background-image: url('${ctx}/images/seach_4.gif');
			}
		</style>
		<link href="${ctx}/css/common.css" rel="stylesheet" type="text/css">
		<script type="text/javascript" src="${ctx}/js/jquery-1.4.4.min.js"></script>
		<script type="text/javascript" src="${ctx}/js/My97DatePicker/WdatePicker.js"></script>
	</head>

	<body>
		<div align="center">
	<form method="post" action="${ctx}/allowance/dengji.htm" id="dengji">
  <table width="100%" height=100% border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td height=25 id=location ><div align="left"><img src="../images/location_arrow.gif" width="8" height="11" align="absmiddle"> 您的位置：住房补贴&gt;&gt; 住房补贴信息&gt;&gt; 住房补贴登记</div></td>
    </tr>
     <tr>
      <td valign="top" ><div>
          <table width="100%"  border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td><TABLE width="100%" border="0" align="center" cellpadding="2" cellspacing="2">
                <TBODY>

                  <TR>
                    <TD ><div align="center">
                      <table width="90%"  border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td><fieldset>
                            <legend>申请人信息</legend>
                            <TABLE width="100%" border="0" align="center" cellpadding="2" cellspacing="2">
                              <TBODY>
                              <TR>
                                  <TD align="right" >产权管理单位</TD>
                                  <TD align="left"> <SELECT name="group_id" id="group_id" size="1", style="width:210px" onchange="setbuildlist(this)">
									   <#if groupList??>
									   		<#list groupList as group>
									   			<#if group_index == 0>
									   				<option selected value="${group.group_id}"> ${group.group_name} </option>
									   				<#else>
									   					<option value="${group.group_id}"> ${group.group_name} </option>
									   			</#if>
	                    					</#list>
									   </#if>
											 </SELECT>	
                                    </TD>
                                  <TD align="right" ></TD>
                                </TR><TR>
                                <TR>
                                  <TD align="right" >姓名</TD>
                                  <TD width="280" align="left" ><INPUT type="text" name="allowance_name" id="allowance_name" class="input-text" style="width:200px" size="20">
                                    *</TD>
                                  <TD width="103" align="right" > 身份证号　</TD>
                                  <TD width="300" align="left" ><INPUT type="text" name="id_card" id="id_card" class="input-text" style="width:200px" size="20">
*</TD>
                                </TR>
                                <TR>
                                  <TD align="right" >工作单位全称</TD>
                                  <TD align="left" colspan="3"><INPUT type="text" name="comp_name" id="comp_name" class="input-text" style="width:660px" size="20">
*</TD>
                                </TR>
                               <TR>
                                  <TD width="139" align="right" > 公积金账号</TD>
                                  <TD align="left" >
                                  <INPUT type="text" name="fund" id="fund" class="input-text" style="width:200px" size="20"></TD>
                                  <TD align="right" >  </TD>
                                  <TD align="left" ></TD>
                                </TR>
                           	   <TR>
                           	     <TD align="right" >户籍号</TD>
                           	     <TD align="left" ><INPUT type="text" name="house_hold" id="house_hold" class="input-text" style="width:200px" size="20"></TD>
                           	     <TD align="right" >领取时间</TD>
                           	     <TD align="left" ><INPUT type="text" name="lqsj" id="lqsj" class="input-text" style="width:200px" size="20" onClick="WdatePicker()"></TD>
                         	     </TR>
                           	   <TR>
                           	     <TD align="right" >现任行政职务</TD>
                           	     <TD align="left" ><INPUT type="text" name="position" id="position" class="input-text" style="width:200px" size="20"></TD>
                           	     <TD align="right" >行政级别</TD>
                           	     <TD align="left" ><INPUT type="text" name="position_level" id="position_level" class="input-text" style="width:200px" size="20"></TD>
                         	     </TR>
                           	   <TR>
                                 <TD align="right" >现聘专业职称</TD>
                                 <TD align="left" ><INPUT type="text" name="rank" id="rank" class="input-text" style="width:200px" size="20"></TD>
                                 <TD align="right" >职称级别　</TD>
                                 <TD align="left" ><INPUT type="text" name="rank_level" id="rank_level" class="input-text" style="width:200px" size="20"></TD>
                         	     </TR>
                           	   <TR>
                           	     <TD align="right" >一次性应领合计</TD>
                           	     <TD align="left" ><INPUT type="text" name="ycxylhj" id="ycxylhj" class="input-text" style="width:200px" size="20">
                           	       元</TD>
                           	     <TD align="right" >领取比例</TD>
                           	     <TD align="left" ><SELECT name="lqbl" id="lqbl" size="1", style="width:210px">
                                   
								    <option selected value="1"> 全额享受 </option>
                                    <option value="2"> 部分享受 </option>
                                    <option value="0"> 未享受 </option>
                                  </SELECT></TD>
                           	   </TR>
                           	   <TR>
                           	     <TD align="right" >已领基准补贴</TD>
                           	     <TD align="left" ><INPUT type="text" name="yljzbt" id="yljzbt" class="input-text" style="width:200px" size="20">
                           	       元</TD>
                           	     <TD align="right" >已领工龄补贴</TD>
                           	     <TD align="left" ><INPUT type="text" name="ylglbt" id="ylglbt" class="input-text" style="width:200px" size="20">
                           	       元</TD>
                           	   </TR>
                           	   <TR>
                           	     <TD align="right" >已领合计</TD>
                           	     <TD align="left" ><INPUT type="text" name="ylhj" id="ylhj" class="input-text" style="width:200px" size="20">
                           	       元</TD>
                           	     <TD align="right" >实领基准补贴</TD>
                           	     <TD align="left" ><INPUT type="text" name="sljzbt" id="sljzbt" class="input-text" style="width:200px" size="20">
                           	       元</TD>
                           	   </TR>
                           	   <TR>
                           	     <TD align="right" >实领工龄补贴</TD>
                           	     <TD align="left" ><INPUT type="text" name="slglbt" id="slglbt" class="input-text" style="width:200px" size="20">
                           	       元</TD>
                           	     <TD align="right" >一次性实领合计</TD>
                           	     <TD align="left" ><INPUT type="text" name="ycxslhj" id="ycxslhj" class="input-text" style="width:200px" size="20">
                           	       元</TD>
                           	   </TR>
                           	   <TR>
                           	     <TD align="right" >领取原因备注</TD>
                           	     <TD colspan="3" align="left" ><INPUT type="text" name="memo" id="memo" class="input-text" style="width:660px" size="20"></TD>
                           	     </TR>
                              </TBODY>
                            </TABLE>
                          </fieldset></td>
                        </tr>
                      </table>
                    </div></TD>
                  </TR>
                  <TR>
                    <TD ><div align="center">
                      </div></TD>
                  </TR>
                  <TR>
                    <TD ><div align="center">
                     <input name="Submit2" type="button" class="input-button" value="保 存" onClick="save()">
                      <img src="${ctx}/images/line.gif" width="5" height="15" align="absmiddle">
                      <input name="Submit23" type="button" class="input-button" value="重 填" onclick="reset()">
                      
                      </div></TD>
                  </TR>
                </TBODY>
              </TABLE></td>
            </tr>
          </table>
          </div>
      </td>
    </tr>
  </table>
	</form>
	<input type="hidden" value="${error!""}" id="errorInfo">
</div>
	</body>
	<script>
	var error = $('#errorInfo').val();
	if (error == '1') {
		alert("保存成功！");
	} else if (error == '0') {
		alert("保存失败，请联系管理员！");
	}
		function save() {
			if ($.trim($('#allowance_name').val()) == '') {
				alert('姓名不能为空！');
				return;
			}
			if ($.trim($('#id_card').val()) == '') {
				alert('身份证号不能为空！');
				return;
			}
			if ($.trim($('#comp_name').val()) == '') {
				alert('工作单位全称不能为空！');
				return;
			}
			$('#dengji').submit();
		}
		
		function reset() {
			$('#allowance_name').val('');
			$('#id_card').val('');
			$('#comp_name').val('');
			$('#fund').val('');
			$('#house_hold').val('');
			$('#lqsj').val('');
			$('#position').val('');
			$('#position_level').val('');
			$('#rank').val('');
			$('#rank_level').val('');
			$('#ycxylhj').val('');
			$('#yljzbt').val('');
			$('#ylglbt').val('');
			$('#ylhj').val('');
			$('#sljzbt').val('');
			$('#slglbt').val('');
			$('#memo').val('');
			$('#ycxslhj').val('');
		}
	</script>
</html>